<include file="Common:header"/>
<style>
.click-more{
	padding-top:5px
}
.prompt_qr{  
	background-color: #edf0f3;
  	color: #b3b3b3;
  	border: 1px solid #e6e6e6;
  	padding: 3px 5px;
  	border-radius: 3px;
}
.qrcode_form{padding:3px 5px; margin-top:20px;}
.qrcode_form div{float: left;}
.qrcode_form p{text-align:center; float: left; width: 100%; margin-top:20px;}
.qrcode_form input{margin-right:2px;}
.sure{
	margin:0 auto;
  	padding: 6px 45px;
  	border-radius: 3px;
  	background-color: #69d0fe;
  	color: #fff;
}

</style>
<body>
	<div class="top-wrap">
		<div class="title-bg">推广链接文章详情二维码</div>
	</div>
	<div class="main-wrap">
		<div class="prompt_qr">提示：开启文章详情二维码之后，会在所推荐的文章详情内底部显示推广二维码图片.</div>

		<form class='qrcode_form' id="myform">
			<div style="width:25%">是否开启：</div>
			<div style="width:35%"><input type="radio" name="open_qrcode" value="1" <if condition="$qr['close_qr'] eq 1">checked="true"</if> >是</div>
			<div style="width:35%"><input type="radio" name="open_qrcode" value="0" <if condition="$qr['close_qr'] eq 
			0">checked="true"</if> >否</div>
			
			<p>
				<button type="submit" class="sure">
					确认提交
				</button>
			</p>
		</form>


	</div>

	<script src="__PUBLIC__/js/layer/layer.js"></script>
	<script type="text/javascript">
		$('#myform').submit(function() {

			$.post('<{:U('Home/User/openQrcode')}>',$(this).serialize(),function(msg){
				window.location.href = "<{:U('Home/User/people_centre')}>";
			});
			return false;
		});

	</script>

<include file="Common:menu"/>
</body>
</html>